<?

$identifier = Model_Resources::getInstance()->table()->idField();
$items = $this->resources;
$label = 'title';
$data = new Zend_Dojo_Data($identifier, $items, $label);

echo $data->toJson();